package com.giggle.common.enums;

public enum DataStatus {

	DELETED(1, "已删除"), UN_DELETED(0, "未删除");

	private int Code;

	private String des;

	DataStatus(int code, String des) {
		Code = code;
		this.des = des;
	}

	public static DataStatus getByCode(int code) {
		for (DataStatus item : DataStatus.values()) {
			if (item.getCode() == code) {
				return item;
			}
		}
		return null;
	}

	public int getCode() {
		return Code;
	}

	public String getDes() {
		return des;
	}

}
